package com.nono.service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;

@Path("/hello")
public class HelloWorldService {

	@GET
	@Path("/ok/{param}")
	public Response ok(@PathParam("param") String msg) {

		String output = "Jersey say : " + msg;

		return Response.status(200).entity(output).build();

	}

	@GET
	@Path("/err/{param}")
	public Response err(@PathParam("param") String msg) {

		return Response.status(StatusNono.ERR2).build();

	}

}